Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 2 - AppleScript Language Reference
Chapter 5 - Objects and References / Using Object Class Definitions


Properties

A property of an object is a characteristic that has a single value, such as the name of a window or the font of a character. Properties are contained by objects in much the same way that elements are. The main difference is that each of
an object's properties has only one value, whereas an object may have many different elements of a single class. Properties of an object are distinguished from each other by their unique labels.

The definitions for two properties (from a total of six) are visible in the object class definition shown in Figure 5-1. These properties' labels are Font and Size. The definition also lists the class to which each property belongs. For example, the class of the Font property is String, indicating that the value of the Font property is a character string. Properties can belong to object or value classes.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996